package com.atguigu.client;

import com.atguigu.bean.idName;
import com.atguigu.entity.*;
import com.atguigu.fallback.ProductFallback;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * ProductFeignClient
 *
 * @author yangchao
 * @version 开发阶段
 * @description TODO
 * @date 2022/1/9 16:44
 */
@FeignClient(value = "ware-manage")
public interface WareFeignClient {
    @GetMapping("/ware/getWareInfoList")
    public  List<WareInfo>  getWareInfoList();
    @PostMapping("/ware/saveWare")
    public void saveWare(@RequestBody WareInfo wareInfo) ;

    @PostMapping("/ware/updateWare")
    public void updateWare(@RequestBody WareInfo wareInfo);

    @DeleteMapping("/ware/deteleWare")
    public void deteleWare(@RequestBody WareInfo wareInfo);
    @GetMapping("/ware/WareSkuList")
    public  List<WareSku>  WareSkuList();

    @PostMapping("/ware/updateWareSku")
    public void updateWareSku(@RequestBody Map<String, Object> map);
}
